package com.fuyin.dao;

import com.fuyin.entity.Resource;
import com.fuyin.entity.User;

import java.util.List;

/**
 * @author yuanxilan (yuanxilan@keep.com)
 * @Description
 * @date 2021年10月24日 2:49 下午
 * @since
 */
public interface UserDao {

    User getUserByUserNameAndPassword(String userName, String password);

    User getUserByUserName(String userName);

    List<User> getUserList(List<Integer> types);

    void register(User user);

    List<Resource> getResourceList(Long userId);

    void updatePassword(String userName, String password);

    User getUserByEmail(String email);

    void updateUser(User user);
}
